Platform Explorer / Nuxeo Platform 2021.61

Component org.nuxeo.ecm.platform.userworkspace.actions

Resolution Order

584
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0" encoding="UTF-8"?>

<component name="org.nuxeo.ecm.platform.userworkspace.actions">

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">
    <action id="SHOW_REPOSITORY"
      link="#{userWorkspaceManagerActions.navigateToOverallWorkspace}"
      enabled="true" label="command.user.return.to.repository"
      icon="/icons/go_to_repository.gif" order="60">
      <category>USER_MENU_ACTIONS</category>
      <filter-id>isInsidePersonalWorkspace</filter-id>
    </action>

    <action id="SHOW_PERSONAL_WORKSPACE"
      link="#{userWorkspaceManagerActions.navigateToCurrentUserPersonalWorkspace}"
      enabled="true" label="command.user.personal.workspace"
      icon="/icons/show_personal_workspace.gif" order="61">
      <category>USER_MENU_ACTIONS</category>
      <filter-id>not_anonymous</filter-id>
      <filter-id>not_transient_user</filter-id>
      <filter-id>canAccessPersonalWorkspace</filter-id>
    </action>
  </extension>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="filters">

    <filter id="isInsidePersonalWorkspace">
      <rule grant="true">
        <condition>#{isInsidePersonalWorkspace}</condition>
      </rule>
    </filter>

    <filter id="canAccessPersonalWorkspace">
      <rule grant="false">
        <condition>#{isInsidePersonalWorkspace}</condition>
      </rule>
    </filter>

  </extension>

</component>